package com.wanmait.zaisousuo.mapper;

import com.wanmait.zaisousuo.pojo.AdminLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminLogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminLog record);

    int insertSelective(AdminLog record);

    AdminLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminLog record);

    int updateByPrimaryKey(AdminLog record);

    //根据起止时间查询管理员的操作日志
    List<AdminLog> findByTimeAndAdmin(@Param("adminId") Integer adminId,@Param("startTime")String startTime,@Param("endTime")String endTime);

    //增加一条操作日志
    void insertOneLog(@Param("adminId") Integer adminId, @Param("log") String log);

    //清空管理员日志
    void truncateAllLogs();


}